/* ======使用注明=======
 //#import "SEGPickView.h"
 //@property (nonatomic, strong)SEGPickView *varPickView; <#注释#>
 // 控件数据模型创建
 SEGPickViewModel *data = [[SEGPickViewModel alloc]init];
 // 控件内容布局计算
 SEGPickViewLayout *layout = [[SEGPickViewLayout alloc]initWithData:data type:SEGEnumPickViewType_NO];
 // 内容布局填充到视图
 SEGPickView *varPickView = [[SEGPickView alloc]initWithFrame:CGRectZero];
 //varPickView.delegate = self;
 varPickView.left = 0;
 varPickView.top = 0;
 varPickView.width = LYScreenWidth();
 varPickView.height = varPickView.layout.totalHeight;
 [varPickView setWithLayout:layout];
 
 */
#import <UIKit/UIKit.h>

#define kPickViewHeight 50 * ([[UIScreen mainScreen] bounds].size.height / 667.f)     // PickView的高度

typedef NS_ENUM(NSUInteger, SEGEnumPickViewType) {
    SEGEnumPickViewType_NO = 0, /*默认*/
};

@protocol SEGprotocolPickViewDelegate <NSObject>
@optional
-(void)SEGprotocolcontentLabel:(SEGLabel*)sender;

@end

@interface SEGPickViewModel : NSObject
@property (nonatomic, copy) NSString *content; // <#注释#>
@property (nonatomic, assign) CGFloat widgetWidth;//控件宽度
@property (nonatomic, strong)id businessData;
-(instancetype)init;
@end

@interface SEGPickViewLayout : NSObject
@property (nonatomic, assign,readonly) CGFloat totalHeight;//控件总高度
@property (nonatomic, assign,readonly) SEGEnumPickViewType type;//控件类型
@property (nonatomic, strong,readonly)SEGPickViewModel *data;
- (instancetype)initWithData:(SEGPickViewModel *)data type:(SEGEnumPickViewType)type;
-(void)segPickViewLayout;

@property (nonatomic, assign) CGFloat contentLabelHeight;//contentLabel 高度
@property (nonatomic, strong) SEGTextLayout *contentLabelTextLayout;//contentLabel 富文本布局

@end

@interface SEGPickView : UIView
@property (nonatomic, strong,readonly)SEGPickViewLayout *layout;
- (void)setWithLayout:(SEGPickViewLayout *)layout;

@property (nonatomic, strong) SEGLabel *contentLabel; // <#注释#>

@property (nonatomic, assign) id<SEGprotocolPickViewDelegate> delegate;// 代理
@end

